package org.cmg.study.spring;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author CMG
 * @version 1.0
 * @cLassName MainApp9
 * @description
 * @date 2021/9/1 11:00
 **/
public class MainApp9 {
    public static void main(String[] args) {
        ApplicationContext ctx = new ClassPathXmlApplicationContext("beans.xml");
        Man man = (Man) ctx.getBean("man");
        man.getName();
        System.out.println("============================");
        man.getAge();
        System.out.println("============================");
        man.throwException();
    }
}
